import { LOADING_TEXT } from '@/config/global.config';
const state = {
  loading: false,
  loadingText: LOADING_TEXT,
};

const mutations = {
  UPDATE_LOADING: (state, data) => {
    state.loading = data || false;
  },
  UPDATE_LOADING_TEXT: (state, data) => {
    state.loadingText = data || LOADING_TEXT;
  },
};

export default {
  state,
  mutations,
};
